package com.hopetech.activemqdemo.producer_consumer;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

@Service
public class Consumer {

    @JmsListener(destination = "test.queue")
    public void receiveMsg(String text){
        System.out.println("<<<----  收到消息: " + text);
    }
}
